﻿<local:BaseWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:PSE.Deployment.SetupBase.UI"
	x:Class="PSE.Deployment.SetupBase.UI.InstallationReport"
	Title="Setup">

    <Grid>
        <Button HorizontalAlignment="Right" Style="{DynamicResource BotaoFechar}" VerticalAlignment="Top" Width="15" Height="15" Content="" Margin="0,15,15,0" x:Name="BtnClose"/>

        <Label x:Name="txtReportTitle" Margin="50,140,28,0" VerticalAlignment="Top" FontSize="24" Foreground="#FF336699" FontWeight="Bold" Height="Auto" />
        <Label Content="Ocorreram erros na instalação. Por favor verifique as mensagens abaixo e escolha a opção desejada." Margin="50,170,28,0" VerticalAlignment="Top" FontSize="12" Foreground="#FF333333"  Height="Auto" />

        <ListView Background="{DynamicResource BackCinza}" x:Name="lvErrors" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" ItemsSource="{Binding IgnoredSteps}" Style="{DynamicResource List}" Height="337" FontSize="12" FontWeight="Normal" IsSynchronizedWithCurrentItem="True" VerticalAlignment="Top" Margin="50,190,0,0" Width="860" HorizontalAlignment="Left">
            <ListView.View>
                <GridView ColumnHeaderContainerStyle="{DynamicResource ListaColunaCor}">
                    <GridViewColumn Header="Passo" Width="300" DisplayMemberBinding="{Binding Description}"/>
                    <GridViewColumn Header="Erro" Width="400" DisplayMemberBinding="{Binding ExecutionException.Message}"/>
                </GridView>
            </ListView.View>
        </ListView>
        <!--<Button Margin="0,0,140,145" Visibility="Collapsed" Style="{DynamicResource setupBt}" Content="Enviar por E-mail" Background="{DynamicResource BtBackColor}" VerticalAlignment="Bottom" Height="21" Foreground="#FFFFFFFF" HorizontalAlignment="Right" Width="130"/>-->
        <Button Margin="0,0,50,145" Style="{DynamicResource setupBt}" x:Name="BtnCopyError" Content="Copiar" Background="{DynamicResource BtBackColor}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="80" Height="21" Foreground="#FFFFFFFF" Click="BtnCopyError_Click" />
        <!--<Button Margin="0,0,320,50" Visibility="Collapsed" Style="{DynamicResource setupBt}" Content="Reinstalar" Background="{DynamicResource BtBackColor}" VerticalAlignment="Bottom" Height="21" Foreground="#FFFFFFFF" HorizontalAlignment="Right" Width="80"/>-->
        <!--<Button Margin="0,0,230,50" Visibility="Collapsed" Style="{DynamicResource setupBt}" Content="Desfazer" Background="{DynamicResource BtBackColor}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="80" Height="21" Foreground="#FFFFFFFF"/>-->
        <!--<Button Margin="0,0,140,50" Visibility="Collapsed" Style="{DynamicResource setupBt}" Content="Finalizar" Background="{DynamicResource BtBackColor}" VerticalAlignment="Bottom" Height="21" Foreground="#FFFFFFFF" HorizontalAlignment="Right" Width="80"/>-->
        <Button Margin="0,0,50,50"  x:Name="BtnNext" Style="{DynamicResource setupBt}" Content="OK" Background="{DynamicResource BtBackColor}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="80" Height="21" Foreground="#FFFFFFFF" Click="BtnNext_Click" />
    </Grid>
</local:BaseWindow>